/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.hiof.moraa.server.dao;

import com.hiof.moraa.server.service.model.Feed;
import com.hiof.moraa.server.service.model.LiveLocationFeed;
import java.sql.Timestamp;
import java.util.Collection;
import java.util.List;

/**
 *
 * @author Bergy
 */
public interface SupportLiveLocationDAO {

    public LiveLocationFeed insertSupportLiveLocationFeed(int supportId, double lat, double lng, double height, double speed, Timestamp timestamp);

    public List<LiveLocationFeed> getLatestLiveLocationFeedOfAllSupport(int routeId);

    public List<LiveLocationFeed> getLatestLiveLocationFeedOfSupportInOneRoute(int routeId, int numOfFeed);

    public  Collection<? extends Feed> getLatestLiveLocationFeedOfOneUsertInOneRoute(String username, int routeId, int numOfLiveLocationFeed);
    
    public LiveLocationFeed getLatestLiveLocationFeedOfOneSupport(int supportId);
    
    public  List<LiveLocationFeed> getLiveLocationFeedOfSupportByUsername(String username, int routeId);
}
